<?php
$data = $_POST;
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "http://www.365editor.com/template/list?ifsystem=".$data['ifsystem']."&classid=".$data['cid']."&page=".$data['page'],
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_REFERER=>'http://www.365editor.com/'
));
$response = json_decode(curl_exec($curl),true);
$err = curl_error($curl);

curl_close($curl);



$response['data'] = $response['msg']['data'];

foreach ($response['data'] as $key => $value) {
    $response['data'][$key]['is_temp'] = 1;
}
$response['code'] = 1;
/* var_dump($response); */

echo json_encode($response);


?>